﻿function parseStock(v, t) {
	var arr = v.split("~");
	return arr;
}

function minStockIndex() {
	var arr_s_sh000001 = parseStock(v_s_sh000001);
	var arr_s_sz399001 = parseStock(v_s_sz399001);
	var arr_s_sz399300 = parseStock(v_s_sz399300);

	var css = parseFloat(arr_s_sh000001[4]) > 0 ? "sp2" : "sp1";
	$("#ui_sh000001").html('<b>上证指数：</b> <span class="sp3">' + arr_s_sh000001[3] + '</span> <span class="' + css + '">' + arr_s_sh000001[4] + ' (' + arr_s_sh000001[5] + '%)</span>')
	var css = parseFloat(arr_s_sz399001[4]) > 0 ? "sp2" : "sp1";
	$("#ui_sz399001").html('<b>深证成数：</b> <span class="sp3">' + arr_s_sz399001[3] + '</span> <span class="' + css + '">' + arr_s_sz399001[4] + ' (' + arr_s_sz399001[5] + '%)</span>')
	var css = parseFloat(arr_s_sz399300[4]) > 0 ? "sp2" : "sp1";
	$("#ui_sz399300").html('<b>沪深300：</b> <span class="sp3">' + arr_s_sz399300[3] + '</span> <span class="' + css + '">' + arr_s_sz399300[4] + ' (' + arr_s_sz399300[5] + '%)</span>')
}